package com.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.Role;
import com.example.mapper.EntityDao;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class RoleServiceImpl extends ServiceImpl<EntityDao, Role>implements RoleService {
    @Async
    public String insertTest() throws InterruptedException {
        TimeUnit.SECONDS.sleep(10);
        System.out.println("插入成功");
        return "插入数据成功";
    }
}
